#include "select_teacher_dialog.h"
#include <QComboBox>
#include <QPushButton>
#include <QVBoxLayout>
#include <QLabel>

SelectTeacherDialog::SelectTeacherDialog(const QStringList &teachers, QWidget *parent)
    : QDialog(parent)
{
    ui.setupUi(this);
    ui.comboBox->addItems(teachers);
    connect(ui.okButton, &QPushButton::clicked, this, [this]() {
        accept();
    });
}

QString SelectTeacherDialog::selectedTeacher() const
{
    return ui.comboBox->currentText();
} 